package request

type AddHouse struct {
	Title     string `json:"title" form:"title"  binding:"required"`         // 房源标题
	Price     uint   `json:"price" form:"price"  binding:"required"`         // 房源价格
	Area      uint   `json:"area" form:"area"  binding:"required"`           // 房源面积
	City      string `json:"city" form:"city"  binding:"required"`           // 城市
	Address   string `json:"address" form:"address"  binding:"required"`     // 地址
	Community string `json:"community" form:"community"  binding:"required"` // 小区名称
	ImgUrl    string `json:"img_url" form:"img_url"  binding:"required"`     // 图片
	VideoUrl  string `json:"video_url" form:"video_url"  binding:"required"` // 视频

}
type ListHouse struct {
	Title    string `json:"title" form:"title"` // 房源标题
	Page     uint   `json:"page" form:"page"`
	PageSize uint   `json:"page_size" form:"page_size"`
}
type Detail struct {
	Id uint `json:"id" form:"id" binding:"required"`
}
type UpdateHouse struct {
	Id    uint `json:"id" form:"id" binding:"required"`
	Price uint `json:"price" form:"price"  binding:"required"` // 房源价格
}
